From: Joan Torres Lopez Date: Thu, 12 Feb 2026 15:38:04 +0000 (+0100) Subject: unlockDialog: Fix username reuse on reset X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3e73f8cf17ef0e71d67acd3ad9774cb3d8fc180b;p=gnome-shell.git unlockDialog: Fix username reuse on reset The condition was checking for PROVIDE_USERNAME specifically, but should also handle REUSE_USERNAME. Check for not DONT_PROVIDE_USERNAME instead to correctly reuse the username when requested. Part-of: (cherry picked from commit 2cb0627a467f2057c28bda57b6858ef04a7ddb55) --- diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index f5f31f5d4..971438a7c 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -849,7 +849,7 @@ export const UnlockDialog = GObject.registerClass({ _onReset(authPrompt, beginRequest) { let userName; - if (beginRequest === AuthPrompt.BeginRequestType.PROVIDE_USERNAME) { + if (beginRequest !== AuthPrompt.BeginRequestType.DONT_PROVIDE_USERNAME) { this._authPrompt.setUser(this._user); userName = this._userName; } else {